home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / pctyp2_b.arc / PCTDOC2.COM / CHAP26.TXT < prev    next >
Text File  |  1989-04-21  |  40KB  |  897 lines

  1.        subject: PCG2.EXE
  2.  
  3.       overview: Section 5.7 in Part II described how to identify the
  4.                 data to be graphed in a PC-Type II file.  The identified
  5.                 information is placed in a file named GRAPH.ME and
  6.                 saved to your default directory.  PC-Type II then calls
  7.                 PCG2 to begin execution.  PCG2 displays a graph based
  8.                 on the information in GRAPH.ME.
  9.  
  10.                 Upon exiting PCG2, you are returned to PC-Type II,
  11.                 editing the file which was active when you started the
  12.                 graph.
  13.  
  14.                 This section describes how to use PCG2, and also
  15.                 provides a description of each type of data line
  16.                 contained in a GRAPH.ME file.
  17.  
  18.                 You do not have to be inside PC-Type II to start PCG2.
  19.                 As long as a GRAPH.ME file exists in your default
  20.                 directory, you can run PCG2 at any time from DOS by
  21.                 typing PCG2 after the DOS prompt and then pressing the
  22.                 Enter key.
  23.  
  24.                 If PCG2 cannot find a GRAPH.ME in your default
  25.                 directory, it will display a message to this effect.
  26.  
  27.                 The GRAPH.ME file can be edited by PC-Type II.  You do
  28.                 not have to go through the process of identifying all
  29.                 the data elements again and creating a new GRAPH.ME
  30.                 file.
  31.  
  32.                 After running PCG2, you may discover a small file
  33.                 named "PCG2.ASP" on your disk.  PCG2 looks for this
  34.                 file when it begins.  It contains the colors you have
  35.                 selected and the aspect ratios you defined for your
  36.                 screen and your printer.  (More about colors and
  37.                 aspect ratios later.)
  38.  
  39.                 PCG2 first looks for PCG2.ASP in the default
  40.                 directory.  If it cannot find it there, (and you are
  41.                 running under DOS version 3.0 or later), it will look
  42.                 for it in the directory in which PCG2.EXE is located.
  43.  
  44.                 NOTE: If PCG2.ASP is not found, then upon entering
  45.                       PCG2 you will be asked to define some aspect
  46.                       ratios.  (See the section on Aspect Ratios
  47.                       defined under the PIE menu line options.)
  48.  
  49.                 The graphing capabilities of PCG2 are especially
  50.                 powerful, because they allow you to summarize large
  51.                 volumes of data into a quickly understood picture.
  52.  
  53.                 Here are some graphs that were produced with PCG2 via
  54.                 PC-Type II.  Please refer to these sample graphs in the
  55.                 discussion that follows.
  56.                                  254
  57.                 These types of graphs can be produced:
  58.  
  59.                 Line graphs                    (see graph    A )
  60.                 Horizontal bar charts          (see chart    B )
  61.                 Vertical bar charts            (see chart    C )
  62.                 Overlapping bar charts         (see chart    K )
  63.                 Pie charts                     (see charts   D and J)
  64.                 Cumulative bar and line graphs (see graphs   F and G)
  65.                 Scatter diagrams               (see diagrams E and L)
  66.  
  67.                 In addition, most of the graphs permit you to display
  68.                 a line showing the average of the data.
  69.  
  70.                 Smoothed (moving) averages can also be drawn on many
  71.                 of the graphs.  This can be extremely useful for
  72.                 indicating trends that wouldn't otherwise show up due
  73.                 to wide fluctuations in individual data points.  (See
  74.                 graph L.)
  75.  
  76.                 A projection line (regression line) can be drawn with
  77.                 your graph.  This is a straight line that represents
  78.                 the best fit to your data.  The method of least
  79.                 squares is used to compute the formula for the line.
  80.                 (See graph E.)
  81.  
  82.                 A logarithmic scale is an option available for line
  83.                 and bar charts.  (See graph H.)
  84.  
  85.                 Devices supported by PC-Type II graphics include:
  86.  
  87.                 CGA adapter
  88.                 EGA adapter
  89.                 VGA adapter
  90.                 Hercules compatible monochrome graphics card
  91.                 Epson (FX) style dot matrix printers
  92.                 Epson (MX) / IBM style dot matrix printers
  93.                 Okidata dot matrix printers
  94.                 HP Laserjet printers
  95.  
  96.                 If your computer has only an IBM monochrome monitor
  97.                 (without a Hercules compatible monochrome card), you
  98.                 cannot use the graphing features of PC-Type II.
  99.  
  100.                 NOTE: If you use a Hercules monochrome graphics, card,
  101.                       then you must run the program MSHERC.COM before
  102.                       running PCG2.  (See the description "Hercules"
  103.                       on page 282.)
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.                                  255
  113.       the menu: When you first enter PCG2, the type of graph specified
  114.                 in the GRAPH.ME file (e.g., pie chart, line graph,
  115.                 bar chart, etc.) will be displayed on your screen.  In
  116.                 the lower right-hand corner of your screen will be the
  117.                 message:
  118.  
  119.                 (press M for menu)
  120.  
  121.                 The options available for each type of graph are
  122.                 displayed in a menu occupying the bottom two lines of
  123.                 your screen.  Since this area is shared by the graph
  124.                 itself, the menu can be "turned off" to enable you to
  125.                 see what the graph looks like on these lines as well.
  126.                 When the menu is turned off, the message above is
  127.                 displayed.
  128.  
  129.                 The M key acts as a toggle to turn the option menu on
  130.                 and off.  After pressing the M key, you should see two
  131.                 menu lines at the bottom of the graph.
  132.  
  133.                 NOTE: If you have run GRAPHICS.COM (supplied with
  134.                       DOS), and wish to perform a PrntScreen of your
  135.                       graphics screen, you may wish to get rid of the
  136.                       "(press M for menu)" reminder as well.  You can
  137.                       do this by pressing Shift F1.  If you do so, the
  138.                       M key will still act as a toggle, but the
  139.                       "(press M for menu)" reminder will no longer be
  140.                       displayed.
  141.  
  142.                 The top menu line, the GENERAL line, is the same for
  143.                 all graphs.  It looks like:
  144.  
  145.        GENERAL:
  146.     (O)utput(C)olor (M)enu (Q)uit (P)ie (L)ine (H)bar (V)bar (S)catter
  147.  
  148.                 The bottom menu line varies, depending on what type of
  149.                 graph is currently displayed, or which mode (e.g.
  150.                 cumulative) is active.
  151.  
  152.                 To select a menu option, press the key indicated by
  153.                 the letter within the parentheses.
  154.  
  155.                 NOTE:Additional messages are presented in the menu
  156.                      area when you set up to print your graph, modify
  157.                      the color selections, and define the aspect
  158.                      ratio for your screen and printer.
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.                                  256
  169.        subject: GENERAL MENU LINE OPTIONS
  170.  
  171.     discussion: Each option available in the GENERAL menu line shown
  172.                 on the preceding page will be discussed in turn.
  173.  
  174.       (O)utput: This command is used to print the graph.  When you
  175.                 press the O key, the following menu is displayed:
  176.  
  177.                 Press P for Portrait     (upright)
  178.                       L for Landscape    (sideways)
  179.                       Q or Esc to cancel
  180.  
  181.                 Here you define the orientation of the printed output.
  182.                 Selecting Portrait (upright), will cause the graph to
  183.                 be printed straight up and down.  The size of this
  184.                 output is smaller than if you select the Landscape
  185.                 option.
  186.  
  187.                 The Landscape option will print your graph rotated by
  188.                 90 degrees, and is fairly close to the size you would
  189.                 want for making view foils.
  190.  
  191.                 After selecting the output orientation, a new menu is
  192.                 displayed:
  193.  
  194.                 Press E for Epson          (Q or Esc to Cancel)
  195.                       I for IBM
  196.                       L for Laserjet
  197.                       O for Okidata
  198.  
  199.                 from which you select the type of printer you are
  200.                 using.
  201.  
  202.                 For Epson MX compatible printers, press I.
  203.                 For Epson FX compatible printers, press E.
  204.                 For Okidata printers in IBM mode, press I.
  205.                 For Okidata mode,                 press O.
  206.  
  207.                 After you select the appropriate printer, the menu
  208.                 lines will be removed from the screen until the graph
  209.                 has been printed.
  210.  
  211.                 As the graph is printing, the screen colors will
  212.                 change to their "negative" colors to show the progress
  213.                 of the printing process.
  214.  
  215.                 When printing is completed, the graph will be redrawn
  216.                 and the main menu redisplayed (depending upon the
  217.                 state of the M toggle.)
  218.  
  219.                 NOTE: If you are printing a Pie chart, it will be
  220.                       redrawn when you select the orientation of the
  221.                       output.  The aspect ration defined for the
  222.                       selected orientation will be used.
  223.  
  224.                                  257
  225.        (C)olor: Some colors may not show up clearly on your screen.
  226.                 The Color command allows you to select those colors
  227.                 which show up best and also permits you to select the
  228.                 foreground and background colors.  Your selections
  229.                 will be saved in the file PCG2.ASP so you will not
  230.                 have to redefine them every time you use PCG2.
  231.  
  232.                 NOTE: If your graphs are displayed in black and white,
  233.                       the "(C)olor" option will have no effect. PCG2
  234.                       attempts to provide you with the maximum
  235.                       resolution your graphics adapter will support.
  236.                       For this reason, CGA will always be displayed in
  237.                       black and white, even though your monitor can
  238.                       display colors.  EGA and VGA can display color.
  239.  
  240.                 When you press C a screen like the one below will be
  241.                 displayed:
  242.                 ┌────────────────────────────┐
  243.                 │  ┌────────────────┐        │
  244.                 │ 1└────────────────┘ Y      │
  245.                 │ .┌────────────────┐ .      │
  246.                 │ .└────────────────┘ .      │
  247.                 │  ┌────────────────┐        │
  248.                 │ n└────────────────┘ Y      │
  249.                 └────────────────────────────┘
  250.           Press F to change foreground color     Q to exit color selection
  251.           Press B to change background color     1-n to toggle display colors
  252.  
  253.                 First set the foreground and background colors to your
  254.                 taste by repeatedly pressing the F and B keys.
  255.  
  256.                 (Whenever F or B is pressed, the colors displayed
  257.                 inside the box will change and the selection toggles
  258.                 (Y/N) will all be set to Y).
  259.  
  260.                 Next press the number keys 1, 2, .. n, (n is normally
  261.                 6 or 7) to toggle the detail color selection.  If an
  262.                 "N" is displayed in the box, the color for the
  263.                 corresponding number has been turned OFF and you will
  264.                 not be able to see the color at all.  Press the
  265.                 corresponding number again to turn it back on.
  266.  
  267.                 When you are finished, press Q.  Only those colors
  268.                 displayed will be used in your graphs.
  269.  
  270.                 In some circumstances, the full range of colors for
  271.                 EGA or VGA adapters cannot be supported  and you may
  272.                 have to run PCG2 in CGA mode.  To do this you cannot
  273.                 invoke PCG2 from within PC-Type II but must start it from
  274.                 DOS with the "force CGA" parameter, /F.  For example:
  275.  
  276.                 C>pcg2 /F
  277.  
  278.                 NOTE: Make sure that you erase PCG2.ASP which contains
  279.                       color defaults before using the /F parameter.
  280.                                  258
  281.         (M)enu: This command removes the menu lines from the screen.
  282.                 If you press the M key a second time, the menu lines
  283.                 will be displayed again.  (When you print the graph,
  284.                 the menu lines will be removed for you automatically.)
  285.  
  286.                 When the menu lines are not displayed, the message
  287.                 "(press M for menu)" is shown at the lower-right of
  288.                 your screen.  You can press Shift F1 to remove this
  289.                 message.
  290.  
  291.         (Q)uit: The Quit command stops PCG2 execution.  If PCG2 was
  292.                 begun from inside PC-Type II, you are returned to
  293.                 PC-Type II.  If you initiated PCG2 from DOS, you are
  294.                 returned to DOS.
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.                                  259
  337.      (S)catter: Pressing the S key from the Main Menu produces a
  338.                 scatter diagram (points are not connected).  (See
  339.                 sample diagrams E and L.)
  340.  
  341.                 The second line of the Main Menu will be:
  342.  
  343.        SCATTER: (B)ound (T)-log (G)rid (X)chg (A)vg (F)it (0-9)-Smoothed Avg
  344.  
  345.        (B)ound: If a "BOUND" record exists in the GRAPH.ME file,
  346.                 pressing the B key will toggle the axes of the scatter
  347.                 diagram between their normal values and those
  348.                 specified in the "BOUND" record.  If no "BOUND" record
  349.                 exists, this option will not be displayed and only the
  350.                 normal values for the axes will be available.
  351.  
  352.        (T)-log: Pressing the T key toggles the scaling of the vertical
  353.                 axis of the diagram between an arithmetic scale and a
  354.                 logarithmic scale.
  355.  
  356.         (G)rid: Pressing the G key toggles the presence or absence of
  357.                 grid lines to be placed on the diagram.
  358.  
  359.         (X)chg: Pressing the X key swaps the elements of multiple
  360.                 variables and their group designations.  It is only
  361.                 available in diagrams with multiple variables.  For
  362.                 example, if each group of data was represented by a
  363.                 year, and each element of a group was a type of fruit,
  364.                 the (X)chg command would cause each group to be a type
  365.                 of fruit and each element of a group to be a year.
  366.                 (E.g.: Sample charts C and I use the same data.  Chart
  367.                 I was produced by issuing the (X)chg command when
  368.                 viewing chart C.)
  369.  
  370.          (A)vg: Pressing the A key will cause an average (or mean)
  371.                 line to be superimposed on the diagram for each group
  372.                 of data points being displayed.
  373.  
  374.          (F)it: Pressing the F key will cause a "least squares"
  375.                 regression line to be superimposed on the diagram for
  376.                 each group of data points being displayed.  (Normally
  377.                 used to display trends.  See sample graph E).
  378.  
  379.   Smoothed Avg: Pressing any of the number keys, 0 through 9, causes a
  380.                 smoothed average line to be superimposed on your
  381.                 diagram for each group of data points being displayed.
  382.                 This shows trends for data which varies substantially.
  383.  
  384.                 The number you select controls the amount of smoothing
  385.                 used.  For example, if you press 2, then 2 data points
  386.                 in a group to the left, the current point, and 2 data
  387.                 points in a group to the right will be averaged  for
  388.                 each plotted point.  The higher the number you choose,
  389.                 the greater the amount of smoothing.  (Sample diagram
  390.                 L was produced selecting 1 for smoothing.)
  391.  
  392.                                  260
  393.         (L)ine: When you press the L key for the GENERAL line of the
  394.                 Main Menu, a line graph is displayed.  See sample
  395.                 graphs A, F and H.
  396.  
  397.                 The second line of the Main Menu will be:
  398.  
  399.   LINE: (B)ound (T)-log (G)rid (X)chg c(U)m (A)vg (F)it (0-9)-Smoothed Avg
  400.  
  401.        (B)ound: If a "BOUND" record exists in the GRAPH.ME file,
  402.                 pressing the B key will toggle the axes of the line
  403.                 graph between their normal values and those specified
  404.                 in the "BOUND" record.  If no "BOUND" record exists,
  405.                 this option will not be displayed and only the normal
  406.                 values for the axes will be available.
  407.  
  408.        (T)-log: Pressing the T key toggles the scaling of the vertical
  409.                 axis of the graph between an arithmetic scale and a
  410.                 logarithmic scale.  (If the c(U)m option is active,
  411.                 logarithmic scaling is suspended and the T key will
  412.                 have no effect.)
  413.  
  414.         (G)rid: Pressing the G key toggles the presence or absence of
  415.                 grid lines to be placed on the graph.
  416.  
  417.         (X)chg: Pressing the X key swaps the elements of multiple
  418.                 variables and their group designations.  It is only
  419.                 available in graphs with multiple variables.  (See the
  420.                 explanation of (X)chg on the previous page for further
  421.                 details.)
  422.  
  423.          c(U)m: Pressing the U key produces cumulative graphs and is
  424.                 most useful when graphing multiple variables.  The Y
  425.                 value of the points for each group at a given position
  426.                 on the X axis are totaled to produce this graph.
  427.                 Logarithmic scaling is not available for this type of
  428.                 display.  Sample graph F is a cumulative graph made
  429.                 from graph A.
  430.  
  431.          (A)vg: Pressing the A key will cause an average (or mean)
  432.                 line to be superimposed on the graph for each group of
  433.                 data points being displayed.
  434.  
  435.          (F)it: Pressing the F key will cause a "least squares"
  436.                 regression line to be superimposed on the graph for
  437.                 each group of data points being displayed.  (Normally
  438.                 used to display trends.  See sample graph E.)
  439.  
  440.   Smoothed Avg: Pressing any of the number keys, 0 through 9, causes a
  441.                 smoothed average line to be superimposed on your graph
  442.                 for each group of data points being displayed.  This
  443.                 shows trends for data which varies substantially.
  444.                 (See the explanation for Smoothed Avg on the previous
  445.                 page for further details.)
  446.  
  447.  
  448.                                  261
  449.         (H)bar: When you press the H key from the GENERAL line of the
  450.                 Main Menu, a horizontal bar chart is drawn.  See
  451.                 sample chart B.
  452.  
  453.         (V)bar: When you press the V key from the GENERAL line of the
  454.                 Main Menu, a vertical bar chart is drawn.  See sample
  455.                 charts C, K, and G.
  456.  
  457.                 The second line of the Main Menu will be:
  458.  
  459.                 BAR: (B)ound (T)-log (G)rid (X)chg c(U)m (A)vg  ov(E)rlap
  460.  
  461.        (B)ound: If a "BOUND" record exists in the GRAPH.ME file,
  462.                 pressing the B key will toggle the axes of the bar
  463.                 chart between their normal values and those specified
  464.                 in the "BOUND" record.  If no "BOUND" record exists,
  465.                 this option will not be displayed and only the normal
  466.                 values for the axes will be available.
  467.  
  468.        (T)-log: Pressing the T key toggles the scaling of the vertical
  469.                 axis of the chart between an arithmetic scale and a
  470.                 logarithmic scale.  (If the c(U)m option is active,
  471.                 logarithmic scaling is suspended and the T key will
  472.                 have no effect.)
  473.  
  474.         (G)rid: Pressing the G key toggles the presence or absence of
  475.                 grid lines to be placed on the chart.
  476.  
  477.         (X)chg: Pressing the X key swaps the elements of multiple
  478.                 variables and their group designations.  It is only
  479.                 available in charts with multiple variables.  (See the
  480.                 explanation of (X)chg in the discussion of scatter
  481.                 diagrams for further details.)
  482.  
  483.          c(U)m: Pressing the U key produces stacked bar charts and is
  484.                 most useful when charting multiple variables.  The
  485.                 "ov(E)rlap" option and logarithmic scaling are not
  486.                 available for this type of display.  Sample chart G is
  487.                 a cumulative chart made from chart C.
  488.  
  489.          (A)vg: Pressing the A key will cause an average (or mean)
  490.                 line to be superimposed on the chart for each group of
  491.                 data being displayed.
  492.  
  493.      ov(E)rlap: Pressing the E key causes the bars (within a group)
  494.                 to overlap.  This option is not available if the bar
  495.                 chart being displayed is in the cumulative mode.
  496.                 Sample chart K is an overlapped bar chart, made by
  497.                 issuing the overlap command while viewing chart C.
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.                                  262
  505.          (P)ie: When you press P from the GENERAL line of the Main
  506.                 Menu, a pie chart will be drawn.  Sample charts D and
  507.                 J were produced with the Pie command.
  508.  
  509.                 The second line of the Main Menu will be:
  510.  
  511.                 PIE: (A)spect (W)edge (D)isp (X)chg (1-2)#pies (N)ext group
  512.  
  513.       (A)spect: Pressing the A key permits you to change the aspect
  514.                 ratio used for displaying and printing pie charts.
  515.  
  516.                 The aspect ratio is the relationship between the
  517.                 density of vertical and horizontal pixels on your
  518.                 screen or dot positions on your printer.  If this
  519.                 ratio is not correct, pies will appear elliptical
  520.                 instead of round.
  521.  
  522.                 When you press A, a new screen will be presented which
  523.                 displays a "circle" inside a "square".  A short
  524.                 horizontal line also appears inside the circle.  A new
  525.                 menu is also shown:
  526.  
  527.         SCREEN: Press Q when done.   Press P/L for Portrait/Landscape
  528.                 Press <- to shrink (Hz/Vert)         ->v to grow (Hz/Vert)
  529.  
  530.                 Pressing Q returns you to your normal display.
  531.  
  532.                 The "circle" displayed upon entry to this screen shows
  533.                 the way a circle will look on your monitor.  You
  534.                 should adjust the horizontal and vertical dimensions
  535.                 (using the arrow keys) until the "circle" appears
  536.                 round and the "square" appears square.
  537.  
  538.                 The left  arrow will reduce   the horizontal width.
  539.                 The right arrow will increase the horizontal width.
  540.                 The up    arrow will reduce   the vertical   height.
  541.                 The down  arrow will increase the vertical   height.
  542.  
  543.                 You should also set the aspect ratio for your printer
  544.                 for both portrait (upright) and landscape (sideways)
  545.                 printing.  Press P or L and this menu will appear:
  546.  
  547.        PRINTER: Press Q when satisfied.        Press P to print image.
  548.                 Press <- to shrink (Hz/Vert)         ->v to grow (Hz/Vert)
  549.  
  550.                 Pressing Q returns you to the previous menu.  Arrow
  551.                 keys adjust the shapes as before, and P activates the
  552.                 printer menu discussed under "(O)utput".
  553.  
  554.                 Setting the printer aspect ratio requires a number of
  555.                 iterations.  Press P, select your printer, and see
  556.                 what shape the "circle" has when it is printed.  (The
  557.                 line inside the circle should help you differentiate
  558.                 between vertical and horizontal on your screen vs
  559.                 vertical and horizontal on your printed output.)
  560.                                  263
  561.                 Use the arrow keys to adjust the shape accordingly and
  562.                 try printing again.  Repeat this process until the
  563.                 "circle" appears round when printed.  (It will
  564.                 probably appear elliptical on your screen.)
  565.  
  566.                 Once it appears round, press Q and then repeat the
  567.                 process for the other print orientation (portrait or
  568.                 landscape).
  569.  
  570.                 These aspect ratios will be saved in the file PCG2.ASP
  571.                 so you will not have to go through this process every
  572.                 time you run the program.
  573.  
  574.        (W)edge: Pressing W will bring up a new screen in which you can
  575.                 define which wedges to pull away from the center of
  576.                 the pie for emphasis.  (Your selection(s) will apply
  577.                 to all pies.)  The following instructions are
  578.                 displayed in the menu area:
  579.  
  580.         As each slice is made solid, press D to detach, A to attach or S to skip.
  581.         Press N to return all slices to pie or Q to terminate operation.
  582.  
  583.                 A pie is drawn containing a section for each group of
  584.                 data.  The first "slice" of the pie is displayed with
  585.                 a solid color.  Pressing:
  586.  
  587.                 D - causes the solid slice to be (D)etached.
  588.                 A - causes the solid slice to be (A)ttached.
  589.                 S - (S)kips the solid slice and moves to the next one.
  590.                 N - returns all detached slices to the center of the
  591.                     pie and exits the wedge option.
  592.                 Q - (Q)uits the slice definition.  All modifications
  593.                     are in effect.
  594.  
  595.                 If the circuit of slices around the pie is completed
  596.                 before you press Q, the wedge option is complete and
  597.                 you are returned to your normal pie display.
  598.  
  599.         (D)isp: Pressing D toggles the label display between:
  600.  
  601.                 (1) headings and percents by their slices.
  602.                 (2) headings next to legend - percents next to slices.
  603.                 (3) headings and percents next to legend.
  604.  
  605.                 Compare sample charts D and J.
  606.  
  607.    (1-2) #pies: If there are multiple groups to be processed, pressing
  608.                 2 will display two pie charts side-by-side.
  609.                 Pressing 1 will display only one.
  610.  
  611.   (N)ext group: If there are multiple groups to be processed, there
  612.                 will be more pies to view than are visible on one
  613.                 screen.  Pressing N will cycle through the additional
  614.                 pies, either one, or two at a time (depending on the
  615.                 selection made for (1-2)).
  616.                                  264
  617.        subject: GRAPH.ME
  618.  
  619.                 The GRAPH.ME file created by PC-Type II contains a number
  620.                 of different types of records to define the data to be
  621.                 graphed and where to return upon completion of PCG2.
  622.                 This file can be edited directly if desired.  The
  623.                 following describes each type of record and its
  624.                 format.  The sample GRAPH.ME file below and the graph
  625.                 which it produces will be referred to in this
  626.                 discussion.
  627.  
  628.                    PARMS:L
  629.                    PORT:LPT2
  630.                    TITLE:Comparative Intnl Sales
  631.                    TITLES:(By city & Month)
  632.                    TITLEV:Sales in $
  633.                    TITLEC:Months
  634.                    TITLEG:Cities
  635.                    TITLEG:Philly
  636.                    TITLEG:Montreal
  637.                    TITLEG:Paris
  638.                    TITLEG:Moscow
  639.                    TITLEG:Redmond
  640.                    TITLEG:Lima
  641.                    TITLEG:Bonn
  642.                    10,20,30,40,100,60,20:Jan
  643.                    50,80,20,15,30,110,33:Feb
  644.                    22,-10,40,60,15,99,122:Mar
  645.  
  646.                 ┌────────────────────────────────────────────────────┐
  647.                 │                                                    │
  648.                 │          Comparative Intnl Sales                   │
  649.                 │             (By city & Month)                      │
  650.                 │   125 ┤                        .                   │
  651.                 │       │                                 Cities     │
  652.                 │ S 100 ┤  .          .          .       .. Philly   │
  653.                 │ a     │             .                  .. Montreal │
  654.                 │ l  75 ┤                                .. Paris    │
  655.                 │ e     │  .     Data points     .       .. Moscow   │
  656.                 │ s  50 ┤  .          .                  .. Redmond  │
  657.                 │       │  .          .          .       .. Lima     │
  658.                 │ i  25 ┤  .                     .       .. Bonn     │
  659.                 │ n     │  .          .          .                   │
  660.                 │     0 ┤                                            │
  661.                 │ $     │                        .                   │
  662.                 │   -25 ┴──┬──────────┬──────────┬──                 │
  663.                 │         Jan        Feb        Mar                  │
  664.                 │                                                    │
  665.                 │                  Months                            │
  666.                 │                                                    │
  667.                 └────────────────────────────────────────────────────┘
  668.                 NOTE:ïAny record in GRAPH.ME which begins with an * in
  669.                      ïcolumn 1 will be treated as a comment line.
  670.  
  671.  
  672.                                  265
  673.          PARMS: (optional record)
  674.                 format  - PARMS:t
  675.                 example - PARMS:L
  676.  
  677.                 This record describes which type of graph, chart, etc.
  678.                 should be displayed when you first enter PCG2.  If
  679.                 this record is omitted, PCG2 defaults to the vertical
  680.                 bar chart display.
  681.  
  682.                 Valid options for t are:
  683.  
  684.                 V - vertical bar chart
  685.                 H - horizontal bar chart
  686.                 L - line graph
  687.                 S - scatter diagram
  688.                 P - pie chart
  689.  
  690.          TITLE: (optional record)
  691.                 format  - TITLE:string
  692.                 example - TITLE:Comparative Intnl Sales
  693.  
  694.                 The title record contains the text (up to 40
  695.                 characters) which is displayed as the primary title of
  696.                 the graph.  If omitted, no title will be displayed.
  697.  
  698.         TITLES: (optional record)
  699.                 format  - TITLES:string
  700.                 example - TITLES:(By city & Month)
  701.  
  702.                 The subtitle record contains the text (up to 40
  703.                 characters) which is displayed as the secondary title
  704.                 of the graph.  If omitted, no subtitle will be
  705.                 displayed.
  706.  
  707.         TITLEV: (optional record)
  708.                 format  - TITLEV:string
  709.                 example - TITLEV:Sales in $
  710.  
  711.                 The value header record describes the data values
  712.                 being graphed.  The text can be up to 20 characters
  713.                 in length.  In a scatter diagram or line graph it is
  714.                 displayed vertically to the left of the Y axis.  If it
  715.                 is omitted, no value heading will be displayed.
  716.  
  717.         TITLEC: (optional record)
  718.                 format  - TITLEC:string
  719.                 example - TITLEC:Months
  720.  
  721.                 The category title record contains the text (up to 12
  722.                 characters in length) describing the distinction
  723.                 between each group of data.  In a scatter diagram or
  724.                 line graph it is displayed below the X axis labels.
  725.  
  726.  
  727.  
  728.                                  266
  729.         TITLEG: (optional record)
  730.                 format  - TITLEG:string:string: .. :string
  731.                 example - TITLEG:Cities:Philly
  732.  
  733.                 The group header record(s) contain the text (up to 12
  734.                 characters per header) describing each element of a
  735.                 group.  There can be multiple TITLEG records, and they
  736.                 are assumed to be in the proper order.  Each text
  737.                 string should be separated by a colon.  Do not place a
  738.                 colon after the last element on the record.
  739.  
  740.                 NOTE: The first string is used to describe the
  741.                       entities within a group, hence the headers for
  742.                       each group element are offset by one.
  743.  
  744.          BOUND: (optional record)
  745.                 format  - BOUND:xh,xl,yh,yl,0,ch
  746.                 example - BOUND:3.4,1,122,-10,0,358
  747.  
  748.                 The BOUND record permits you to specify the maximum
  749.                 and minimum bounds for the X and Y axes.  This is
  750.                 useful when preparing a group of charts in which you
  751.                 want the axes to reflect identical scaling for
  752.                 comparative purposes.  This record is normally
  753.                 inserted in GRAPH.ME manually.  When present, it
  754.                 enables the "(B)ound" option on the second menu line
  755.                 for most graphs.
  756.  
  757.                 xh - maximum Xvalue
  758.                 xl - minimum Xvalue
  759.                 yh - maximum Yvalue
  760.                 yl - minimum Yvalue
  761.                 ch - maximum Cumulative value
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.                                  267
  785.    data record: (required)
  786.                  format - vi1, .., vin:string {*}
  787.                      or - vi1, .., vin:#x     {*}
  788.                 example - 10,20,30,40,100,60,20:Jan
  789.                      or - 10,20,30,40,100,60,20:#1. *
  790.  
  791.                 Each data record represents one category spanning all groups.
  792.  
  793.                    vij - a numeric value representing the ith element
  794.                          in the jth group.  If there are n groups
  795.                          being graphed, then there must be n vij's
  796.                          (separated by commas) in each data record.
  797.  
  798.                 string - up to 12 characters defining the ith element.
  799.  
  800.                     #x - implies that the numeric value x is to be
  801.                          interpreted as a value, not as text.  These
  802.                          values are used on the X-axis only.  If the
  803.                          "(X)chg" option is used, this "value" option
  804.                          is not transferred.  This permits you to plot
  805.                          data which is not equidistant on the X axis.
  806.  
  807.                      * - this optional parameter specifies that the
  808.                          ith element is to be detached from each pie.
  809.                          It can be overridden within PCG2.  It is not
  810.                          transferred with the "(X)chg" option.
  811.  
  812.                 (1) This record may require more than one line in
  813.                     GRAPH.ME.  If a line is to be continued, it should
  814.                     end with the backslash character \.
  815.  
  816.                 (2) Each data record MUST have the same number of data
  817.                     elements.
  818.  
  819.                 (3) The colon is required.  Any record which does not
  820.                     contain a colon will be ignored.
  821.  
  822.                 (4) The two types of data records (x-value  or string)
  823.                     cannot be mixed within the same GRAPH.ME file.
  824.  
  825.                 (5) Data records must be in order.  If the data
  826.                     records are of the "#x" type, they must be in
  827.                     ascending order.
  828.  
  829.           PORT: (optional)
  830.                 format  -»PORT:filespec
  831.                 example -»PORT:COM1
  832.  
  833.                 The PORT record defines the port (or file) to which
  834.                 the graphics output will be sent when printing a
  835.                 graph.  If this record is not included in the GRAPH.ME
  836.                 file, the standard output port will be used (LPT1).
  837.  
  838.                 NOTE: If the /p= parameter is used when starting PCG2,
  839.                       the PORT: record will be ignored.  (See page 282.)
  840.                                  268
  841.       Hercules: If you have a Hercules compatible graphics card and a
  842.                 monochrome monitor, you must run a special program
  843.                 before you can produce graphs.  The program is called
  844.                 MSHERC.COM.  It was placed on your hard disk when you
  845.                 installed PC-Type II.
  846.  
  847.                 MSHERC.COM only needs to be run once each time you
  848.                 boot up your computer.  You run it directly from DOS.
  849.                 Most people prefer to put the command MSHERC directly
  850.                 in their AUTOEXEC.BAT file so that it is run
  851.                 automatically for them each time they turn on their
  852.                 computer.
  853.  
  854.       problems: If you have trouble getting a graph on your screen,
  855.                 investigate the following:
  856.  
  857.                 (1) The program PCG2.EXE must be somewhere on the DOS
  858.                      path.
  859.  
  860.                 (2) You must have a monitor and video adapter card
  861.                     that is capable of producing graphics.  The IBM
  862.                     monochrome monitor without a Hercules graphics
  863.                     card is not capable of producing graphs.
  864.  
  865.                 (3) If you have a Hercules graphics card and
  866.                     monochrome monitor, you must run the program
  867.                     MSHERC before PCG2 can be activated.
  868.  
  869.                 (4) If some data does not seem to appear in your
  870.                     graphs, try adjusting the (C)olor option.  If the
  871.                     problem persists, run PCG2 from DOS using the /F
  872.                     parameter.
  873.  
  874.      port parm: Normally PCG2 will send the printed output to LPT1,
  875.                 the standard output port.  If your graphics printer is
  876.                 connected to a different output port, you can send the
  877.                 output to that port by using the "PORT:" record inside
  878.                 your GRAPH.ME file, or by invoking PCG2 with the
  879.                 parameter: /P=filespec. E.g.,
  880.  
  881.                 C>PCG2 /P=COM1
  882.  
  883.                 The /P= parameter overrides the "PORT:" record.
  884.  
  885.                 NOTE: If you include a GR_PORT: record in your
  886.                       PCTYPE.PRO profile file, then the output
  887.                       specified on that record will be used to create
  888.                       a "PORT:" record in the GRAPH.ME file created by
  889.                       PC-Type II.
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.                                  269
  897.